/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class TextBookVoEntity implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<TextBookVoEntity> CREATOR = new Creator();
    private final int gradeId;
    @NotNull
    private final String gradeItemName;
    private final int stageId;
    private final int subjectId;
    private final int textbookId;
    @NotNull
    private final String textbookName;
    private final int textbookVersionId;
    @NotNull
    private final String textbookVersionName;

    /* compiled from: VideoTextBookEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<TextBookVoEntity> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final TextBookVoEntity createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            return new TextBookVoEntity(parcel.readInt(), parcel.readString(), parcel.readInt(), parcel.readString(), parcel.readInt(), parcel.readInt(), parcel.readString(), parcel.readInt());
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final TextBookVoEntity[] newArray(int i2) {
            return new TextBookVoEntity[i2];
        }
    }

    public TextBookVoEntity(int i2, @NotNull String textbookName, int i3, @NotNull String textbookVersionName, int i4, int i5, @NotNull String gradeItemName, int i6) {
        Intrinsics.checkNotNullParameter(textbookName, "textbookName");
        Intrinsics.checkNotNullParameter(textbookVersionName, "textbookVersionName");
        Intrinsics.checkNotNullParameter(gradeItemName, "gradeItemName");
        this.textbookId = i2;
        this.textbookName = textbookName;
        this.textbookVersionId = i3;
        this.textbookVersionName = textbookVersionName;
        this.stageId = i4;
        this.gradeId = i5;
        this.gradeItemName = gradeItemName;
        this.subjectId = i6;
    }

    public final int component1() {
        return this.textbookId;
    }

    @NotNull
    public final String component2() {
        return this.textbookName;
    }

    public final int component3() {
        return this.textbookVersionId;
    }

    @NotNull
    public final String component4() {
        return this.textbookVersionName;
    }

    public final int component5() {
        return this.stageId;
    }

    public final int component6() {
        return this.gradeId;
    }

    @NotNull
    public final String component7() {
        return this.gradeItemName;
    }

    public final int component8() {
        return this.subjectId;
    }

    @NotNull
    public final TextBookVoEntity copy(int i2, @NotNull String textbookName, int i3, @NotNull String textbookVersionName, int i4, int i5, @NotNull String gradeItemName, int i6) {
        Intrinsics.checkNotNullParameter(textbookName, "textbookName");
        Intrinsics.checkNotNullParameter(textbookVersionName, "textbookVersionName");
        Intrinsics.checkNotNullParameter(gradeItemName, "gradeItemName");
        return new TextBookVoEntity(i2, textbookName, i3, textbookVersionName, i4, i5, gradeItemName, i6);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof TextBookVoEntity)) {
            return false;
        }
        TextBookVoEntity textBookVoEntity = (TextBookVoEntity) obj;
        return this.textbookId == textBookVoEntity.textbookId && Intrinsics.areEqual(this.textbookName, textBookVoEntity.textbookName) && this.textbookVersionId == textBookVoEntity.textbookVersionId && Intrinsics.areEqual(this.textbookVersionName, textBookVoEntity.textbookVersionName) && this.stageId == textBookVoEntity.stageId && this.gradeId == textBookVoEntity.gradeId && Intrinsics.areEqual(this.gradeItemName, textBookVoEntity.gradeItemName) && this.subjectId == textBookVoEntity.subjectId;
    }

    public final int getGradeId() {
        return this.gradeId;
    }

    @NotNull
    public final String getGradeItemName() {
        return this.gradeItemName;
    }

    public final int getStageId() {
        return this.stageId;
    }

    public final int getSubjectId() {
        return this.subjectId;
    }

    public final int getTextbookId() {
        return this.textbookId;
    }

    @NotNull
    public final String getTextbookName() {
        return this.textbookName;
    }

    public final int getTextbookVersionId() {
        return this.textbookVersionId;
    }

    @NotNull
    public final String getTextbookVersionName() {
        return this.textbookVersionName;
    }

    public int hashCode() {
        return (((((((((((((this.textbookId * 31) + this.textbookName.hashCode()) * 31) + this.textbookVersionId) * 31) + this.textbookVersionName.hashCode()) * 31) + this.stageId) * 31) + this.gradeId) * 31) + this.gradeItemName.hashCode()) * 31) + this.subjectId;
    }

    @NotNull
    public String toString() {
        return "TextBookVoEntity(textbookId=" + this.textbookId + ", textbookName=" + this.textbookName + ", textbookVersionId=" + this.textbookVersionId + ", textbookVersionName=" + this.textbookVersionName + ", stageId=" + this.stageId + ", gradeId=" + this.gradeId + ", gradeItemName=" + this.gradeItemName + ", subjectId=" + this.subjectId + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        out.writeInt(this.textbookId);
        out.writeString(this.textbookName);
        out.writeInt(this.textbookVersionId);
        out.writeString(this.textbookVersionName);
        out.writeInt(this.stageId);
        out.writeInt(this.gradeId);
        out.writeString(this.gradeItemName);
        out.writeInt(this.subjectId);
    }
}